package com.newtouch.bxzs.common.base.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 公告管理实体类
 *
 * <p>
 * <b>History:</b>
 * <table border="1">
 * <tr>
 * <th>Date</th>
 * <th>Operator</th>
 * <th>Memo</th>
 * </tr>
 * <tr>
 * <td>2020/12/23</td>
 * <td>liman</td>
 * <td>Create</td>
 * </tr>
 * </table>
 *
 * @author liman
 * @version 1.0.0
 * @since 1.0.0
 */
@Data
@TableName("ASSISTANT_ANNOUNCEMENT")
public class Announcement implements Serializable {

    private static final long serialVersionUID = 2468562780387069962L;
    /**
     * 公告ID
     */
    @TableId(value = "ANNOUNCEMENT_ID",type = IdType.ASSIGN_UUID)
    private String announcementId;

    /**
     * 公告名称
     */
    @TableField(value = "ANNOUNCEMENT_NAME")
    private String announcementName;

    /**
     * 公告简介
     */
    @TableField(value = "ANNOUNCEMENT_INTRODUCTION")
    private String announcementIntroduction;

    /**
     * 公告内容
     */
    @TableField(value = "ANNOUNCEMENT_CONTENT")
    private String announcementContent;

    /**
     * 发布时间
     */
    @TableField(value = "PUBLISH_TIME",updateStrategy=FieldStrategy.IGNORED)
    private Date publishTime;

    /**
     * 撤销时间
     */
    @TableField(value = "REVOKE_TIME",updateStrategy=FieldStrategy.IGNORED)
    private Date revokeTime;

    /**
     * 发布状态：未发布1；已发布2；已结束3；已取消4；已撤销5
     */
    @TableField(value = "PUBLISH_STATUS")
    private String publishStatus;

    /**
     * 创建人Id
     */
    @TableField(value = "CREATE_USER_ID")
    private String createUserId;

    /**
     * 创建时间
     */
    @TableField(value = "CREATE_TIME")
    private Date createTime;

    /**
     * 修改人Id
     */
    @TableField(value = "UPDATE_USER_ID")
    private String updateUserId;

    /**
     * 修改时间
     */
    @TableField(value = "UPDATE_TIME")
    private Date updateTime;

    /**
     * 备注
     */
    @TableField(value = "MEMO")
    private String memo;

    /**
     * 是否删除：已删除1；未删除0
     */
    @TableLogic(value = "0", delval = "1")
    @TableField(value = "IS_DELETE")
    private Boolean deleteFlag;
}
